package com.hangwei.paperless.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.hangwei.paperless.R;
import com.hangwei.paperless.model.bean.PartsRoutingSheet;
import com.twelve.all.adapter.MyAdapter;
import com.twelve.all.utils.Tools;

import java.util.List;

public class SymbolAdapter extends MyAdapter<PartsRoutingSheet.SymbolBean, BaseViewHolder> {

    public SymbolAdapter(@Nullable List<PartsRoutingSheet.SymbolBean> data) {
        super(R.layout.item_symbol,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PartsRoutingSheet.SymbolBean item) {
        helper.setText(R.id.tvKey, Tools.checkedString(item.key))
                .setText(R.id.tvValue,Tools.checkedString(item.value));
    }
}
